package cn.bluejoe.elfinder.my;

import cn.bluejoe.elfinder.localfs.LocalFsVolume;
import cn.bluejoe.elfinder.service.FsService;
import cn.bluejoe.elfinder.service.FsServiceFactory;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import java.util.regex.Pattern;

/**
 * Created by wxy on 2018/6/6.
 */
public class MyFsServiceFactory/* implements FsServiceFactory*/{
    /*@Override
    public FsService getFileService(HttpServletRequest request, ServletContext servletContext) {
        //获取到用户名
        String username = request.getUserPrincipal().getName();
        //读取文件资源表
        //构造FsVolume及子目录。。。
        LocalFsVolume fsVolume = new LocalFsVolume();
        fsVolume.setName("myNewFile");
        //fsVolume.setRootDir("/files/c");

        return null;
    }
*/

    public static void main(String[] args) {
        String regex = "A_.*";
        System.out.println(Pattern.compile(regex).matcher("A_1111").matches());
    }
}
